package com.cloud.log;

import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@EnableAspectJAutoProxy
@ConditionalOnWebApplication
@Configuration(proxyBeanMethods = false)
public class AopConfig {

    @Bean
    public WebLogAspect webLogAspect(){
        return new WebLogAspect();
    }
}

